﻿@model ShopShop.Models.SubCategory
@using ShopShop.Models
@{
    AppClient db = new AppClient(Manufacturor.BANGIAY);
    IBanGiayRepository iBanGiayFactory = db.factory.CreateProduct();
    var Products = iBanGiayFactory.getProducts(); 
}
@{
    ViewBag.Title = "Index";
}

@foreach (Product pro in Products.Where(x => x.SubCategoryId.Equals(Model.CategoryId)))
{
    <img src="/Images/Product/@(pro.ProductImages.Select(y => y.Url).First())"  width="220" height=220" 
                        style="position: absolute; top: 0px; left: 0px;" title="">

    @Model.Description

    <br />
    @pro.ProductName

    <br />
    Gia ban : @pro.Price VND

    <br />
    Mau sac: @pro.Color

}

